home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / game / patch / trexwrhd.lha / TrexWarriorHD / Install-Game next >
Text File  |  1998-09-19  |  1KB  |  71 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #rip "abaddon")
  4. (set #dismount "dismount")
  5.  
  6.  
  7. ;----------------------------
  8.  
  9. ;try to figure out a place where the user usually installs his games
  10. (if (exists "Games:" (noreq) )
  11.     (set @default-dest "Games:")
  12.     (if (exists "SYS:Games" (noreq) )
  13.         (set @default-dest "SYS:Games")
  14.         (if (exists "Work:Games" (noreq) )
  15.             (set @default-dest "Work:Games")
  16.             (if (exists "JEUX:" (noreq) )
  17.                (set @default-dest "JEUX:")
  18.                (set @default-dest "SYS:")
  19.             )
  20.         )
  21.     )
  22. )
  23.  
  24.  
  25. (set @default-dest
  26. (askdir
  27.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (disk)
  31. )
  32. )
  33.  
  34. (set #dest (tackon @default-dest @app-name))
  35.  
  36.  
  37. (makedir #dest
  38.     (help @makedir-help)
  39.     (infos)
  40. )
  41.  
  42. ;----------------------------
  43.  
  44.  
  45. (copyfiles
  46.     (help @copyfiles-help)
  47.     (source "TrexWarriorHD")
  48.     (dest #dest)
  49.     (infos)
  50. )
  51.  
  52. (copyfiles
  53.     (help @copyfiles-help)
  54.     (source "trexwrhd.readme")
  55.     (dest #dest)
  56.     (infos)
  57. )
  58.  
  59. (makeassign    #rip #dest)
  60.  
  61. (message ("\nReady to rip %s data?\n\nThe screen will go black" @app-name))
  62.  
  63.     (if
  64.         (= 0 (run ("riptrex QUIET")))
  65.         ("")
  66.         (abort "\"jst\" must be in your PATH !")
  67.     )
  68. (makeassign    #rip)
  69. (exit)
  70.  
  71.